<%@ page import="com.foreknow.model.Guestbook" %><%--
  Created by IntelliJ IDEA.
  User: L
  Date: 2021/8/23
  Time: 16:56
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%--引用标签库 taglib--%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>Title</title>

    <script src="js/jquery.js"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery.js"></script>
    <link href="https://cdn.jsdelivr.net/npm/@bootcss/v3.bootcss.com@1.0.12/dist/css/bootstrap.min.css" rel="stylesheet">
</head>


<body>


<form method="post" action="?&q=update" accept-charset="UTF-8">
<%--   <% Object gb=request.getAttribute("queryById");--%>
<%--       System.out.println(gb.toString());--%>
<%--   %>--%>
    <div class="form-group">
        <label for="id1">id</label>
        <input type="text" readonly class="form-control" id="id1"  name="id" value="${sessionScope.queryById.id}" placeholder="id" >

    </div>
    <div class="form-group">
        <label for="name1">name</label>
        <input type="text" class="form-control" id="name1" name="name" value="${sessionScope.queryById.name}" placeholder="name">
    </div>
    <div class="form-group">
        <label for="phone1">phone</label>
        <input type="text" class="form-control" id="phone1" name="phone" value="${sessionScope.queryById.phone}" placeholder="phone">
    </div>
    <div class="form-group">
        <label for="email1">email</label>
        <input type="email" class="form-control" id="email1" name="email" value="${sessionScope.queryById.email}" placeholder="email">
    </div>
    <div class="form-group">
        <label for="title1">title</label>
        <input type="text" class="form-control" id="title1" name="title" value="${sessionScope.queryById.title}" placeholder="title">
    </div>
    <div class="form-group">
        <label for="content1">content</label>
<%--        <input type="text" class="form-control" id="content1" name="content" value="${sessionScope.queryById.content}" placeholder="content">--%>
        <textarea class="form-control" rows="3" id="content1" name="content"  placeholder="content"></textarea>

    </div>
    <div class="form-group">
        <label for="createdtime1">createdtime</label>
        <input type="text" readonly class="form-control" id="createdtime1" name="createdtime" value="${sessionScope.queryById.createdtime}"  placeholder="content">
    </div>
<%--    <script>--%>

<%--        $(function (){--%>
<%--            var id=$("input#id1")--%>
<%--            var name=$("input#name1")--%>
<%--            var phone=$("input#phone1")--%>
<%--            var email=$("input#email1")--%>
<%--            var title=$("input#title1")--%>
<%--            var content=$("input#content1")--%>
<%--            var createdtime=$("input#createdtime1")--%>
<%--        })--%>
<%--        --%>
<%--        --%>
<%--    </script>--%>

    <button type="submit" class="btn btn-default">Submit</button>
    <button type="reset" class="btn btn-default">reset</button>
</form>

<script>
    $(function(){
        $("#content1").text("${sessionScope.queryById.content}")
    })
</script>


</body>
</html>
